<div ng-controller="FapiaoWriteBackCtrl as vm">
<div class="well">

<form class="form-horizontal" ng-submit="vm.processForm()">
      <fieldset>
        <div class="control-group">
          <!-- Text input-->
          <label class="control-label" for="input01">*请填写发票号</label>
          <div class="controls">
            <input type="text"  class="input-xlarge" ng-model="formData.invoiceNumber">
            <p class="help-block"></p>
          </div>
        </div>
        <div class="control-group">
          <!-- Text input-->
          <label class="control-label" for="input01">*发票时间</label>
          <div class="controls">
              <input id="invoiceDate" placeholder="请输入日期" class="laydate-icon" onclick="laydate()">            
              <p class="help-block"></p>
          </div>
        </div>
        <div class="control-group" >
          <label class="control-label" >*上传发票文件</label>
          <!-- File Upload -->
          <div class="controls">
              <input type="text" id="fapiao" placeholder="" class="input-large" style="display: none"/>
              <image id="fapiaoImg" style="display: none;" width="30" height="40"></image>
              <a style="cursor: hand" onclick="openUpload('fapiao')">上传文件</a>
          </div>
        </div>

        <button class="btn btn-primary" >提交</button>
</fieldset>

</form>
    <script>
        function openUpload(inputid){
            var url = "../views/upload.html?id="+ inputid;
            var iWidth=400; //弹出窗口的宽度;
            var iHeight=300; //弹出窗口的高度;
            var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置;
            var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置;
            window.open(url,'uploadwindow','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+ iLeft +',toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
        }
    </script>
</div>
    </div>